package com.bravo.article.repository;

import com.bravo.article.entity.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 评论
 */
public interface CommentRepository extends MongoRepository<Comment,String> {
    /**
     * 根据文章ID查询评论列表
     * @param articleId
     * @return
     */
    List<Comment> findByArticleId(String articleId);
}
